package com.lottery.material.service.portal.circle;


import com.lottery.material.pojo.circle.CircleInfo;
import com.lottery.material.pojo.circle.CircleMemberInfo;
import com.lottery.material.pojo.page.PageData;
import com.lottery.material.vo.portal.circle.CircleInfoVo;
import com.lottery.material.vo.portal.circle.MemberCircleVo;

import java.util.List;
import java.util.Map;

public interface CircleMemberInfoService {
    /**
    * @Author: houjie
    * @Description: 根据用户userId及圈子id获取圈成员信息
    * @Date: 2019/4/9 15:52
    */
    CircleMemberInfo findByUserIdAndCircleId(PageData pd);

    /**
     * description: 删除圈子成员
     * author sunny
     * createDate 2019-04-15 下午 2:55
     * @param circleMemberInfo
     */
    Integer deleteCircleMember(CircleMemberInfo circleMemberInfo, CircleInfo circleInfo) throws Exception;

    /**
     * description: 保存圈子成员
     * author sunny
     * createDate 2019-04-15 下午 3:03
     * @param circleMemberInfo
     */
    Integer saveCircleMember(CircleMemberInfo circleMemberInfo, CircleInfo circleInfo) throws Exception;

    /**
     * description: 根据用户id查询关注圈子数
     * author sunny
     * createDate 2019-04-15 下午 4:15
     * @param userId
     * @return
     */
    Integer findCountByUserId(String userId);

    /**
     * 查询置顶的圈子列表
     * @Author 焦阳
     * @return
     */
    List<MemberCircleVo> findTopCircleList(String userId);

    /**
     * 根据userId查询圈子列表
     * @Author
     * @param userId
     * @return
     */
    List<MemberCircleVo> findMyCircleList(String userId);

    /**
     * 置顶、取消置顶圈子
     * @param reqParamMap
     * @return
     */
    Integer setTopCircle(Map<String, String> reqParamMap);

    /**
     * @Author 肖拔赟
     * @Description 5.1	获取我的关注圈子列表接口
     * @Date Created on 2019-04-19 15:08
     * @param
     * @return CircleInfoVo
     */
    List<CircleInfoVo> findAttentionByUserId(String userId) ;

    /**
     * @Author 肖拔赟
     * @Description 保存圈子成员信息
     * @Date Created on 2019-04-19 15:08
     * @param
     * @return CircleInfoVo
     */
    Integer save(CircleMemberInfo record);


    /**
     * @Author 肖拔赟
     * @Description 5.1	获取圈子粉丝Top10
     * @Date Created on 2019-04-19 15:08
     * @param
     * @return
     */
    List<Map<String, String>> getFansTop10(String circleId);
}
